package edu.sctu.practice.class02.renzhaoxu.test18;

/**
 * Created by Administrator on 2015/11/4.
 */
public class Auto {

    int tires;
    String color;
    double load;
    double speed;

    public Auto(int tires, String color, double load, double speed) {

        this.tires = tires;

        this.color = color;

        this.load = load;

        this.speed = speed;

    }

    void accelerate() {

        System.out.println("加速");

    }

    void decelerate() {

        System.out.println("减速");

    }

    void stop() {

        System.out.println("停车");

    }

    void getInfo(){

        System.out.println("轮胎"+tires+"\n颜色"+color+"\n重量"+load+"\n速度"+speed);
    }
}

